<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "pms_albums".
 *
 * @property integer $albumid
 * @property integer $userid
 * @property string $title
 * @property string $picture
 * @property string $keywords
 * @property string $summary
 * @property integer $created
 * @property integer $viewnum
 * @property integer $comtnum
 * @property integer $laudnum
 * @property integer $status
 */
class PmsAlbums extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'pms_albums';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['albumid'], 'required'],
            [['albumid', 'userid', 'created', 'viewnum', 'comtnum', 'laudnum', 'status'], 'integer'],
            [['title', 'picture', 'summary'], 'string', 'max' => 255],
            [['keywords'], 'string', 'max' => 2550],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'albumid' => 'Albumid',
            'userid' => 'Userid',
            'title' => 'Title',
            'picture' => 'Picture',
            'keywords' => 'Keywords',
            'summary' => 'Summary',
            'created' => 'Created',
            'viewnum' => 'Viewnum',
            'comtnum' => 'Comtnum',
            'laudnum' => 'Laudnum',
            'status' => 'Status',
        ];
    }
}
